package com.yike.user.service;

import com.yike.user.entity.UserAuthorize;
import com.yike.user.param.UserAuthorizePageParam;
import com.yike.common.base.BaseService;
import com.yike.common.pagination.Paging;

/**
 * 用户授权表 服务类
 *
 * @author Sakura
 * @since 2024-08-22
 */
public interface UserAuthorizeService extends BaseService<UserAuthorize> {

    /**
     * 保存
     *
     * @param userAuthorize
     * @return
     * @throws Exception
     */
    boolean saveUserAuthorize(UserAuthorize userAuthorize) throws Exception;

    /**
     * 修改
     *
     * @param userAuthorize
     * @return
     * @throws Exception
     */
    boolean updateUserAuthorize(UserAuthorize userAuthorize) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @return
     * @throws Exception
     */
    boolean deleteUserAuthorize(Long id) throws Exception;


    /**
     * 获取分页对象
     *
     * @param userAuthorizePageParam
     * @return
     * @throws Exception
     */
    Paging<UserAuthorize> getUserAuthorizePageList(UserAuthorizePageParam userAuthorizePageParam) throws Exception;

}
